﻿
using System;
using System.Data;
using System.Web;
using System.Configuration;
using System.Web.Security;
using System.Web.UI;

public partial class CustomError : System.Web.UI.Page
{
  //  public ErrorHandler objErrorHandler = new ErrorHandler();

    #region Page Events
    protected void Page_Load(object sender, EventArgs e)
    {

        lblErrorMsg.ToolTip = System.Web.HttpContext.Current.Session["SystemExceptionMessage"] == null ? "Record Empty" : System.Web.HttpContext.Current.Session["SystemExceptionMessage"].ToString();
        if (System.Web.HttpContext.Current.Session["SystemExceptionStack"] == null)
        {
            lblErrorMsg.ToolTip += "\r\n" + "Empty Stack";
        }
        else
        {
            lblErrorMsg.ToolTip += "\r\n" + System.Web.HttpContext.Current.Session["SystemExceptionStack"].ToString();
        }
    }
    #endregion

    #region Control Events

    protected void lbtnHome_Click(object sender, EventArgs e)
    {
        System.Web.HttpContext.Current.Response.Redirect("~/Index.aspx" + QueryStringModule.Encrypt("DashBoardType=Home"));
    }

    #endregion
}
